#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include<QMessageBox>
#include<QCloseEvent>
#include "workerthread.h"

#define MAXSIZE 5

QT_BEGIN_NAMESPACE
namespace Ui { class Dialog; }
QT_END_NAMESPACE

class Dialog : public QDialog
{
    Q_OBJECT

public:
    Dialog(QWidget *parent = nullptr);
    ~Dialog();
protected:

   void closeEvent(QCloseEvent *e);






private slots:
   void on_pushButton_clicked();

   void on_pushButton_2_clicked();

   void on_pushButton_3_clicked();

private:
    Ui::Dialog *ui;
    workerthread *Worker[MAXSIZE];

};
#endif // DIALOG_H
